package com.atguigu.tingshu.service.impl;

import com.atguigu.tingshu.service.MqService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.StringRedisTemplate;
import org.springframework.stereotype.Service;

@Service
public class MqServiceImpl implements MqService {
    @Autowired
    private StringRedisTemplate redisTemplate;
    @Override
    public void listenAlbumInfo(String cacheKey) {
        redisTemplate.delete(cacheKey);
    }
}
